import request from '@/utils/request'

// 产品工序工时数据
export function TheProductWorkingHours(data) {
  return request({
    url: '/device/TheProductWorkingHours1',
    method: 'post',
    data
  })
}

// 员工工时数据,旧版
export function getInTheDayTime(data) {
  return request({
    url: '/device/getInTheDayTime',
    method: 'post',
    data
  })
}
// 员工工时数据
export function getInTheDayTime1(data) {
  return request({
    url: '/device/getInTheDayTime1',
    method: 'post',
    data
  })
}
// 刷新员工数据
export function updateDatamsg(data) {
  return request({
    url: '/device/saveUserDatePerformanceAndAllUserPerformanceAndUserPerformanceRanking',
    method: 'post',
    data
  })
}
// 刷新表格数据
export function updateAllDatamsg(data) {
  return request({
    url: '/device/saveAllUserDatePerformanceAndAllUserPerformanceAndUserPerformanceRanking',
    method: 'post',
    data
  })
}
// 刷新加班工时
export function save_zcq_jb(data) {
  return request({
    url: '/device/save_zcq_jb',
    method: 'post',
    data
  })
}
// 绩效与质量
export function getJobNumberScore(data) {
  return request({
    url: '/device/getJobNumberScoreList',
    method: 'post',
    data
  })
}
// 修改员工异常/间接工时数据
export function saveYCAndJJUserDatePerformance(data) {
  return request({
    url: '/device/saveYCAndJJUserDatePerformance',
    method: 'post',
    data
  })
}
// 导出员工工时记录明细
export function findUserDatePerformanceInfo(data) {
  return request({
    url: '/device/findUserDatePerformanceInfo',
    method: 'post',
    data
  })
}
// 员工质量系数
export function getUseIntradayQuality(data) {
  return request({
    url: '/device/getUseIntradayQuality',
    method: 'post',
    data
  })
}
// 获取员工当月工作质量
export function findUserQualityScore(data) {
  return request({
    url: '/back/performance/findUserQualityScore',
    method: 'post',
    data
  })
}
// 员工绩效添加
export function savePerformance(data) {
  return request({
    url: '/back/performance/savePerformance',
    method: 'post',
    data
  })
}

// 员工绩效删除
export function delPerformance(data) {
  return request({
    url: '/back/performance/delPerformance',
    method: 'post',
    data
  })
}

// 员工绩效查询
export function performancePage(data) {
  return request({
    url: '/back/performance/performancePage',
    method: 'post',
    data
  })
}
// 绩效考核
export function performanceAssessment(data) {
  return request({
    url: '/back/performance/performanceAssessment',
    method: 'post',
    data
  })
}
// 获取员工的考勤记录
export function attendancePage(data) {
  return request({
    url: '/back/attendance/attendancePage',
    method: 'post',
    data
  })
}

// 获取质量与绩效的统计数据
export function performanceStatisticsPage(data) {
  return request({
    url: '/back/performance/performanceStatisticsPage',
    method: 'post',
    data
  })
}

// 获取员工荣誉
export function findUserhonor(data) {
  return request({
    url: '/user-honor/find',
    method: 'post',
    data
  })
}
// 保存员工荣誉
export function saveUserhonor(data) {
  return request({
    url: '/user-honor/save',
    method: 'post',
    data
  })
}
// 删除员工荣誉
export function delUserhonor(data) {
  return request({
    url: '/user-honor/del',
    method: 'post',
    data
  })
}

// 正班出勤数据
export function findUserTime(data) {
  return request({
    url: '/user-time/findUserTime',
    method: 'post',
    data
  })
}

// 查询员工工资
export function findUsermoney(data) {
  return request({
    url: '/user-money/find',
    method: 'post',
    data
  })
}

// 刷新工资明细
export function test26(params) {
  return request({
    params,
    url: '/test/test26',
    method: 'post'
  })
}

// 刷新工资明细
export function test27(params) {
  return request({
    params,
    url: '/test/test27',
    method: 'post'
  })
}

